<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
	<script src="webjars/jquery/3.6.0/dist/jquery.min.js"></script>
</head>
<body>
	<h1 align="center">欢迎登陆武林秘籍管理系统</h1>
	<hr>
	<div align="center">
		<form th:action="@{/login}" method="post">
			用户名:<input name="username"/><br>
			密码:<input name="password"><br/>
			验证码:<input name="code"><img id="codeImg" onclick="changeCode()" src="/validcode" width="100" height="40">
			<span th:text="${session.msg}" style="color:red"></span><br/>
			<span th:text="${msg}" style="color:red"></span><br/>
			记住我：<input type="checkbox" name="remember-me"/><br/>
			<input type="submit" value="登陆"></form>
	</div>
</body>
<script >
	function changeCode(){
		$("#codeImg").attr("src","/validcode")
	}
</script>
</html>